﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace DotNet.Utilities
{
    public class ProcessHelp
    {
        public static string GetProcessNameByPID(int processID)
        {
            
            try
            {
                Process p = Process.GetProcessById((int)processID);
                return p.ProcessName;
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                return "Unknown";
            }
        }
    }


}
